package com.example.administrator.coolweather;

import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
 //       SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
//        if(prefs!=null){
//            Intent intent = new Intent(this,WeatherActivity.class);
//            startActivity(intent);
//            Log.d("Mainactivity","这里是MainActivity1====================");
//            finish();
//        }

        Log.d("Mainactivity","这里是MainActivity2====================");
    }
}
